import com.baomidou.mybatisplus.annotation.IdType;
import com.github.davidfantasy.mybatisplus.generatorui.GeneratorConfig;
import com.github.davidfantasy.mybatisplus.generatorui.MybatisPlusToolsApplication;

public class GenerateMain {
    public static void main(String[] args) {
        GeneratorConfig generatorConfig = GeneratorConfig
                .builder()
                .driverClassName("com.mysql.cj.jdbc.Driver")
                .jdbcUrl("jdbc:mysql://localhost:3306/netshop1?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=UTC")
                .userName("root")
                .password("123456")
                .basePackage("org.example")
                .idType(IdType.AUTO)
                .port(9998)//端口号
                .build();
        MybatisPlusToolsApplication.run(generatorConfig);
    }
}